package com.scalar.chiptrack.wipProcessView;

import java.io.Serializable;

/**
 * User: Sujan
 * Date: May 3, 2005
 * Time: 1:42:57 PM
 */
public class Edge implements Serializable
{
	private NodeList nodeList;
	private EdgeList edgeList;
	int from = -1;
	int to = -1;
	public Edge(int from, int to, NodeList nodeList, EdgeList edgeList)
	{
		this.from = from;
		this.to = to;
        this.nodeList = nodeList;
        this.edgeList = edgeList;
    }

	public int getFrom ()
	{
		return from;
	}

	public void setFrom ( int from )
	{
		this.from = from;
	}

	public int getTo ()
	{
		return to;
	}

	public void setTo ( int to )
	{
		this.to = to;
	}

	public NodeList getNodeList ()
	{
		return nodeList;
	}

	public void setNodeList ( NodeList nodeList )
	{
		this.nodeList = nodeList;
	}

	public EdgeList getEdgeList ()
	{
		return edgeList;
	}

	public void setEdgeList ( EdgeList edgeList ) {
		this.edgeList = edgeList;
	}


    public String toString()
    {
        return "From:" + from + " To:" + to;
    }
}
